import NProgress from "nprogress";
import "nprogress/nprogress.css";
import { useEffect } from "react";

const NprogressBar: React.FC = () => {
  useEffect(() => {
    NProgress.start();
    return () => {
      NProgress.done();
    };
  }, []);
  return <></>;
};

export default NprogressBar;
